<template>
  <div class="user">
    <h1>用户管理</h1>
    <div class="user-list">
      <div v-for="user in users" :key="user.id" class="user-item">
        <h3>{{ user.name }}</h3>
        <p>邮箱: {{ user.email }}</p>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue';

const users = ref([
  { id: 1, name: '张三', email: 'zhangsan@example.com' },
  { id: 2, name: '李四', email: 'lisi@example.com' },
]);
</script>

<style scoped>
.user-list {
  margin-top: 20px;
}
.user-item {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 4px;
}
</style>
